import Vue from 'vue'
import App from './App.vue'
// 三级联动组件，全局组件
import TypeNav from './components/TypeNav/TypeNav.vue'
// 引入路由文件
import router from './router/index.js'
// 引入Vuex仓库
import store from '@/store/store.js'
// 引入MockServer.js，mock数据
import '@/mock/mockServe.js'

Vue.component('MyTypeNav', TypeNav)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  // 注册路由
  router,
  // 注册Vuex仓库：组件实例上会多一个$store对象
  store
}).$mount('#app')
